<?php // Vars: $productAdsPager

echo $productAdsPager->renderNavigationTop();

echo _open('ul.ads');

foreach ($productAdsPager as $productAds)
{
  echo _open('li');
if($productAds->url)
        echo _link((($productAds->url)))->text(_media($productAds->ImageThumb)->height(50));
 else
     echo _link((($productAds)))->text(_media($productAds->ImageThumb)->height(50));
  echo _close('li');
}

echo _close('ul');

echo $productAdsPager->renderNavigationBottom();